package cn.com.clearcloud.order.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "user-server", fallback = UserServiceFallback.class)
public interface UserClient {

     @PostMapping("/user/debit/{userId}/{money}/{id}")
     Integer debit(@PathVariable("userId") String userId,
               @PathVariable("money") Integer money,
               @PathVariable("id") Integer id);
}
